<template>
    <div>
        <el-form :inline="true" v-model="sg">
            <el-form-item label="施工主任务">
                <el-input v-model="sg.main_task"></el-input>
            </el-form-item>
            <el-form-item label="施工子任务">
                <el-input v-model="sg.sub_task" ></el-input>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="list()">检索</el-button>
            </el-form-item>
        </el-form>
        <h1 style="text-align: center;margin-top: 30px;margin-bottom: 30px">施工进度计划列表</h1>
        <div>
            <el-table :data="build_progress" >
                <el-table-column prop="p_id" label="所属项目" >
                </el-table-column>
                <el-table-column prop="main_task" label="施工主任务" >
                </el-table-column>
                <el-table-column prop="sub_task" label="施工子任务" > </el-table-column>
                <el-table-column prop="start_date" label="开始日期"> </el-table-column>
                <el-table-column prop="end_date" label="结束日期"> </el-table-column>
            </el-table>
        </div>
    </div>
</template>

<script>
    import {BuildProgressService} from "../../model/ww/BuildProgressService.js";
    const b = BuildProgressService.getInstance()
    export default {
        name: "OutputList",
        data(){
            return {
                sg:{} ,//高级检索对象
                build_progress:[]  //表格数据
            }

        },
        methods:{
            list(){
                b.list(this.sg).then((response)=>{
                    this.build_progress=response.data.data
                })
            }
        },
        created(){
            this.list()
        }

    }
</script>

<style scoped>

</style>